#!/bin/sh

set -e

# https://docs.fedoraproject.org/en-US/Fedora_Draft_Documentation/0.1/html/RPM_Guide/ch09s04s05.html

systemctl daemon-reload || :
if [ "$1" -ge 1 ] ; then
  # Package upgrade, not uninstall
  systemctl try-restart inspeqtor || :
fi
